# coding: utf-8
from enum import Enum

from qfluentwidgets import StyleSheetBase, Theme, qconfig

from .settings import CSS_DIR


class StyleSheet(StyleSheetBase, Enum):
    WINDOW = "window"
    PAGER = "pager"
    NAVIGATION_INTERFACE = "navigation_interface"

    def path(self, theme=Theme.AUTO):
        theme = qconfig.theme if theme == Theme.AUTO else theme
        return CSS_DIR / theme.value.lower() / f"{self.value}.css"
